package lab02.test07;

import java.security.SecureRandom;

//定义父类
public class Person {
    //属性：人名、年龄、身份证号
    String name;
    int age;
    String idNumber;

//方法重写，object中的toString方法
    @Override
    public String toString() {
        //String info = "身份证号："+idNumber + "\t年龄：" + age + "\t姓名：" + name;
        return "身份证号："+idNumber + "\t年龄：" + age + "\t姓名：" + name;
    }
}
